/**
 * 
 */
package br.org.bertol.mestrado.engine.optimisation.moo;

import java.util.Comparator;

import br.org.bertol.mestrado.engine.optimisation.Unit;

/**
 * @author contaqualquer
 */
public class OrdenatePareto<U extends Unit> implements Comparator<U> {

    @Override
    public int compare(U left, U right) {

        final int pareto = (new ParetoDominace()).compare(left.getHeight(),
                                                          right.getHeight());

        return pareto;
    }

}
